import Vue from 'vue'
import App from './App.vue'
import './styles/global.less'
import router from './router'
import "./eventBus"
import store from './store'

store.dispatch("setting/fetchSetting");


//弹窗
import { showMessage } from '@/utils';
Vue.prototype.$showMessage = showMessage;

//使用mock
import "./mock"

//注册全局指令
import vLoading from "./directives/loading"
import vLazy from "./directives/lazy"
Vue.directive("loading", vLoading);
Vue.directive("lazy", vLazy);


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
